package com.ruoyi.framework.shiro.service;

import com.ruoyi.system.mapper.SysIndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * Created by Lxxxxxxy_ on 2022/11/18 17:20.
 */
@Component
public class SysIndexService {

    @Autowired
    private SysIndexMapper sysIndexMapper;

    public Integer statisticsProcessSum(){
        return sysIndexMapper.statisticsProcessSum();
    }

    public Integer statisticsNotFinishedProcessSum(){
        return sysIndexMapper.statisticsNotFinishedProcessSum();
    }

    public Integer statisticsFinishedProcessSum(){
        return sysIndexMapper.statisticsFinishedProcessSum();
    }
    public List<Map<String, Object>> statisticsSystem(){
        return sysIndexMapper.statisticsSystem();
    }

}
